/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.OneToOne;

/**
 *
 * @author Andy
 */
@Entity(name = "Disposal")
public class DisposalEntity extends DataObjectEntity implements Serializable {

    @OneToOne
    private BatchEntity batch;
    private int quantity;

    public DisposalEntity() {
        super();
    }

    public BatchEntity getBatch() {
        return batch;
    }

    public void setBatch(BatchEntity batch) {
        this.batch = batch;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    @Override
    public String childToString() {
        return "DisposalEntity{" + "batch=" + batch + ", quantity=" + quantity + '}';
    }
    
}
